home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / gasmania.swf / scripts / frame_5 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  9.1 KB  |  221 lines

  1. var ┬º\x01┬º = 887;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 887)
  5.    {
  6.       set("\x01",eval("\x01") - 29);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else if(eval("\x01") == 921)
  10.    {
  11.       set("\x01",eval("\x01") - 333);
  12.    }
  13.    else
  14.    {
  15.       if(eval("\x01") == 410)
  16.       {
  17.          set("\x01",eval("\x01") + 471);
  18.          stop();
  19.          this._lockroot = true;
  20.          PiaoSound = new Sound();
  21.          onEnterFrame = function()
  22.          {
  23.             _root.piao.play();
  24.             delete this.onEnterFrame;
  25.          };
  26.          switch(_global.nLevel)
  27.          {
  28.             case 1:
  29.                attachMovie("level1","level",this.getNextHighestDepth(),{_x:431,_y:107});
  30.                this.Topic.text = "Welcome to ΓÇ£Gas ManiaΓÇ¥.";
  31.                this.Txt.text = "Only a couple of customers will visit while you learn how to operate the pumps on this level. DonΓÇÖt forget to collect the cash from the customers.";
  32.                _global.nLevelScore = 200;
  33.                _global.GameFirst = true;
  34.                break;
  35.             case 2:
  36.                attachMovie("level2","level",this.getNextHighestDepth(),{_x:431,_y:107});
  37.                this.Txt.text = "Your station now has a second pump and more customers are coming. Make sure you serve them as soon as possible to earn the most money. ";
  38.                _global.nLevelScore = 600;
  39.                break;
  40.             case 3:
  41.                attachMovie("level3","level",this.getNextHighestDepth(),{_x:431,_y:107});
  42.                this.Txt.text = "Your second pump is now for Silver gasoline, which is preferred by minivan drivers.  They are less patient, but are more generous.";
  43.                _global.nLevelScore = 800;
  44.                break;
  45.             case 4:
  46.                attachMovie("level4","level",this.getNextHighestDepth(),{_x:431,_y:107});
  47.                this.Txt.text = "You now have three pumps to serve more customers.";
  48.                _global.nLevelScore = 800;
  49.                break;
  50.             case 5:
  51.                attachMovie("level5","level",this.getNextHighestDepth(),{_x:431,_y:107});
  52.                this.Txt.text = "More customers come to your station with more needs. You now also have to fill up their tires to keep them happy.";
  53.                _global.nLevelScore = 1000;
  54.                break;
  55.             case 6:
  56.                attachMovie("level6","level",this.getNextHighestDepth(),{_x:431,_y:107});
  57.                this.Txt.text = "One pump has been upgraded and can pump gasoline much faster to help service more customers.";
  58.                _global.nLevelScore = 1400;
  59.                break;
  60.             case 7:
  61.                attachMovie("level7","level",this.getNextHighestDepth(),{_x:431,_y:107});
  62.                this.Txt.text = "Your station now accepts credit cards which enable faster payment. Two pumps have been upgraded.";
  63.                _global.nLevelScore = 1700;
  64.                break;
  65.             case 8:
  66.                attachMovie("level8","level",this.getNextHighestDepth(),{_x:431,_y:107});
  67.                this.Txt.text = "Your station now offers a Wild Bean Cafe, serving fresh, great tasting coffee.";
  68.                _global.nLevelScore = 1800;
  69.                break;
  70.             case 9:
  71.                attachMovie("level9","level",this.getNextHighestDepth(),{_x:431,_y:107});
  72.                this.Txt.text = "Your station now serves Ultimate gasoline, which is preferred by the fast sports cars.";
  73.                _global.nLevelScore = 2100;
  74.                break;
  75.             case 10:
  76.                attachMovie("level1","level",this.getNextHighestDepth(),{_x:431,_y:107});
  77.                attachMovie("level0","level2",this.getNextHighestDepth(),{_x:431 + _root.level._width,_y:107});
  78.                this.Txt.text = "Your station now has 5 fuel pumps and business never sounded better.";
  79.                _global.nLevelScore = 2600;
  80.                break;
  81.             case 12:
  82.                attachMovie("level1","level",this.getNextHighestDepth(),{_x:431,_y:107});
  83.                attachMovie("level2","level2",this.getNextHighestDepth(),{_x:431 + _root.level._width,_y:107});
  84.                this.Txt.text = "To meet increasing customer traffic, your station now has 4 upgraded fuel pumps. Some customers may even need a quart of oil.";
  85.                _global.nLevelScore = 3100;
  86.                break;
  87.             case 11:
  88.                attachMovie("level1","level",this.getNextHighestDepth(),{_x:431,_y:107});
  89.                attachMovie("level1","level2",this.getNextHighestDepth(),{_x:431 + _root.level._width,_y:107});
  90.                this.Txt.text = "You are getting faster at serving more customers and they are hungry for Sandwiches.";
  91.                _global.nLevelScore = 2800;
  92.                break;
  93.             case 13:
  94.                attachMovie("level1","level",this.getNextHighestDepth(),{_x:431,_y:107});
  95.                attachMovie("level3","level2",this.getNextHighestDepth(),{_x:431 + _root.level._width,_y:107});
  96.                this.Txt.text = "Customers\' cars are dirty, so make sure to take advantage of your new car wash.  Business at your station is moving at a rapid pace, and you now have all six fuel pumps in action.";
  97.                _global.nLevelScore = 3600;
  98.                break;
  99.             case 14:
  100.                attachMovie("level1","level",this.getNextHighestDepth(),{_x:431,_y:107});
  101.                attachMovie("level4","level2",this.getNextHighestDepth(),{_x:431 + _root.level._width,_y:107});
  102.                this.Txt.text = "More and more sports cars are coming to your station. You now have another Ultimate fuel pump.";
  103.                _global.nLevelScore = 4300;
  104.                break;
  105.             case 15:
  106.                attachMovie("level1","level",this.getNextHighestDepth(),{_x:431,_y:107});
  107.                attachMovie("level5","level2",this.getNextHighestDepth(),{_x:431 + _root.level._width,_y:107});
  108.                this.Txt.text = "Your station now has canopy lights, and serves lots of satisfied customers.";
  109.                _global.nLevelScore = 4800;
  110.          }
  111.          eval("{invalid_utf8=245}{invalid_utf8=238}{invalid_utf8=161}{invalid_utf8=113}├ë@")[┬º┬ºconstant(47)][┬º┬ºconstant(16)] = eval(┬º┬ºconstant(7))[┬º┬ºconstant(20)];
  112.          eval("{invalid_utf8=245}{invalid_utf8=238}{invalid_utf8=161}{invalid_utf8=113}├ë@")[┬º┬ºconstant(48)][┬º┬ºconstant(49)][┬º┬ºconstant(50)] = function()
  113.          {
  114.             removeMovieClip(eval(┬º┬ºconstant(12)));
  115.             removeMovieClip(eval(┬º┬ºconstant(22)));
  116.             eval("K{invalid_utf8=198}${invalid_utf8=249}{invalid_utf8=186}")[┬º┬ºconstant(51)]();
  117.             if(_global[┬º┬ºconstant(8)] <= 2)
  118.             {
  119.                gotoAndPlay(12);
  120.             }
  121.             else if(_global[┬º┬ºconstant(8)] > 2 && _global[┬º┬ºconstant(8)] <= 15)
  122.             {
  123.                gotoAndPlay(7);
  124.             }
  125.          };
  126.          break;
  127.       }
  128.       if(eval("\x01") == 977)
  129.       {
  130.          set("\x01",eval("\x01") - 440);
  131.          if(┬º┬ºpop())
  132.          {
  133.             set("\x01",eval("\x01") + 137);
  134.          }
  135.       }
  136.       else if(eval("\x01") == 588)
  137.       {
  138.          set("\x01",eval("\x01") - 178);
  139.       }
  140.       else if(eval("\x01") == 674)
  141.       {
  142.          set("\x01",eval("\x01") - 86);
  143.       }
  144.       else if(eval("\x01") == 182)
  145.       {
  146.          set("\x01",eval("\x01") + 356);
  147.       }
  148.       else if(eval("\x01") == 538)
  149.       {
  150.          set("\x01",eval("\x01") + 439);
  151.          ┬º┬ºpush(true);
  152.       }
  153.       else if(eval("\x01") == 858)
  154.       {
  155.          set("\x01",eval("\x01") - 136);
  156.          if(┬º┬ºpop())
  157.          {
  158.             set("\x01",eval("\x01") - 131);
  159.          }
  160.       }
  161.       else
  162.       {
  163.          if(eval("\x01") == 881)
  164.          {
  165.             set("\x01",eval("\x01") - 881);
  166.             break;
  167.          }
  168.          if(eval("\x01") == 591)
  169.          {
  170.             set("\x01",eval("\x01") - 503);
  171.          }
  172.          else
  173.          {
  174.             if(eval("\x01") == 722)
  175.             {
  176.                set("\x01",eval("\x01") - 131);
  177.                break;
  178.             }
  179.             if(eval("\x01") == 366)
  180.             {
  181.                set("\x01",eval("\x01") - 278);
  182.             }
  183.             else if(eval("\x01") == 27)
  184.             {
  185.                set("\x01",eval("\x01") + 511);
  186.             }
  187.             else
  188.             {
  189.                if(eval("\x01") == 479)
  190.                {
  191.                   set("\x01",eval("\x01") - 452);
  192.                   break;
  193.                }
  194.                if(eval("\x01") == 608)
  195.                {
  196.                   set("\x01",eval("\x01") - 129);
  197.                   if(┬º┬ºpop())
  198.                   {
  199.                      set("\x01",eval("\x01") - 452);
  200.                   }
  201.                }
  202.                else
  203.                {
  204.                   if(eval("\x01") == 537)
  205.                   {
  206.                      set("\x01",eval("\x01") + 137);
  207.                      break;
  208.                   }
  209.                   if(eval("\x01") != 88)
  210.                   {
  211.                      break;
  212.                   }
  213.                   set("\x01",eval("\x01") + 520);
  214.                   ┬º┬ºpush(true);
  215.                }
  216.             }
  217.          }
  218.       }
  219.    }
  220. }
  221.